Contents | Index | < Browse | Browse >

LETTERmktimeULETTER Packs a time value.

Overview
#include <time.h>

timevalue = mktime(tp);

time_t timevalue;
struct tm *tp;

Portability
ANSI

Description
Returns the "packed" timevalue "tp", which represents the number of seconds since 00:00:00 January 1, 1970, computed from the "tp" structure passed.

"tp" must be initialized, however StormC only requires the common fields. The more exotic structure components (eg. "day in the year" and "day of the week") are not necessary, however you should consider them if your program should be portable.

Returns
The "packed" timevalue.

See also
localtime , time